package com.fwj.portal.entity.activity;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
*
* @TableName business_activity
*/
@ApiModel(value="com.fwj.portal.entity.activity.BusinessActivity")
@Data
@Table( name = "business_activity")
public class BusinessActivity implements Serializable {

    /**
    * 活动ID
    */
    @NotNull(message="[活动ID]不能为空")
    @ApiModelProperty("活动ID")
    @Column(name = "activity_id")
    private Long activityId;
    /**
    * 活动话题
    */
    @Size(max= 60,message="编码长度不能超过60")
    @ApiModelProperty("活动话题")
    @Column(name = "topic")
    private String topic;
    /**
     * 活动封面
     */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("活动封面")
    @Column(name = "cover")
    private String cover;
    /**
    * 正文
    */
    @ApiModelProperty("正文")
    @Column(name = "text")
    private String text;
    /**
    * 创建者
    */
    @ApiModelProperty("创建者")
    @Column(name = "creator")
    private Long creator;
    /**
    * 审核员ID
    */
    @ApiModelProperty("审核员ID")
    @Column(name = "reviewer")
    private Long reviewer;
    /**
    * 板块类型
    */
    @Size(max= 100,message="编码长度不能超过100")
    @ApiModelProperty("板块类型")
    @Column(name = "plate_type")
    private String plateType;
    /**
    * 板块ID
    */
    @ApiModelProperty("板块ID")
    @Column(name = "plate_id")
    private Long plateId;
    /**
    * 发布时间
    */
    @ApiModelProperty("发布时间")
    @Column(name = "release_time")
    private LocalDateTime releaseTime;
    /**
    * 更新时间
    */
    @ApiModelProperty("更新时间")
    @Column(name = "update_time")
    private LocalDateTime updateTime;
    /**
    * 状态
    */
    @Size(max= 20,message="编码长度不能超过20")
    @ApiModelProperty("状态")
    @Column(name = "status")
    private String status;

}
